
from google.appengine.ext import db

class Topic(db.Model):
  text = db.StringProperty()
  questions = db.ListProperty(db.Key)

class Question(db.Model):
  text = db.StringProperty(multiline=True)
  topics = db.ListProperty(db.Key)
  owner = db.UserProperty()

class Answer(db.Model):
  text = db.StringProperty(multiline=True)
  rating = db.IntegerProperty()
  question = db.ReferenceProperty(Question)
  owner = db.UserProperty()




